﻿package net.wangit.view.tree;

import net.wangit.framework.cache.Cache;
import net.wangit.framework.util.CacheUtil;

public class TreeConfigCache {

	public TreeConfigCache() {
	}

	public static TreeConfig get(String domain, String treeId) {
		return (TreeConfig) getCache(domain).get(treeId);
	}

	public static void put(String domain, String treeId, TreeConfig treeConfig) {
		getCache(domain).put(treeId, treeConfig);
	}

	public static void clear(String domain, String treeId) {
		getCache(domain).clear(treeId);
	}

	private static Cache getCache(String domain) {
		return CacheUtil.getTreeConfigCache(domain);
	}
}
